* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #111;
    color: #eee;
    line-height: 1.5;
    flex: 1;
}

.container {
    max-width: 500px;
    margin: 60px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease;
    flex: 1;
}

h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #fff;
    animation: slideDown 0.5s ease;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    animation: slideUp 0.5s ease 0.1s both;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 24px;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #fff;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid #333;
    font-size: 16px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #666;
    background: #222;
}

.input-wrapper input::placeholder {
    color: #555;
}

button {
    padding: 0 28px;
    background: #fff;
    color: #111;
    border: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 120px;
    height: 58px;
}

.button-icon {
    font-size: 22px;
    transition: transform 0.2s ease;
}

button:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

button:hover .button-icon {
    transform: translateX(3px);
}

button:active {
    background: #e0e0e0;
    transform: translateY(0);
}

button.loading {
    background: #2a2a2a;
    color: #888;
    pointer-events: none;
}

button.loading .button-icon {
    animation: spin 0.8s linear infinite;
    transform: none;
}

.info-message {
    font-size: 15px;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
    animation: slideDown 0.3s ease;
}

.info-message ion-icon {
    font-size: 24px;
    transition: transform 0.2s ease;
}

.info-message:hover ion-icon {
    transform: scale(1.1);
}

.info-message.success {
    color: #4caf50;
}

.info-message.success ion-icon {
    color: #4caf50;
}

.info-message.error {
    color: #f44336;
}

.info-message.error ion-icon {
    color: #f44336;
}

.info-message.warning {
    color: #ffa726;
}

.info-message.warning ion-icon {
    color: #ffa726;
}

.info-message.hidden {
    display: none;
}

.result-section {
    margin: 30px 0;
    padding: 25px;
    background: #1a1a1a;
    border-radius: 6px;
    animation: scaleIn 0.4s ease;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    animation: slideRight 0.3s ease;
}

.result-header ion-icon {
    font-size: 32px;
    color: #4caf50;
    animation: popIn 0.4s ease;
}

.result-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

.url-box {
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 15px;
    word-break: break-all;
    font-size: 15px;
    font-family: monospace;
    color: #4caf50;
    border-radius: 4px;
    transition: all 0.2s ease;
    animation: fadeIn 0.5s ease;
    text-align: center;
}

.url-box:hover {
    border-color: #4caf50;
    background: #151515;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    animation: slideUp 0.3s ease;
}

.result-actions button {
    padding: 0 18px;
    font-size: 15px;
    height: 42px;
    min-width: auto;
}

.result-actions button ion-icon {
    font-size: 20px;
}

.result-actions .secondary-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #444;
}

.result-actions .secondary-btn:hover {
    background: #222;
    border-color: #666;
    transform: translateY(-1px);
}

#loading, #error {
    margin: 20px 0;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 6px;
    font-size: 16px;
    animation: fadeIn 0.3s ease;
}

#loading ion-icon, #error ion-icon {
    font-size: 28px;
}

#loading {
    color: #888;
    background: #1a1a1a;
    border: 1px solid #333;
}

#error {
    color: #f44336;
    background: #1a1a1a;
    border: 1px solid #442222;
}

#error ion-icon {
    color: #f44336;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

.supported {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    animation: fadeIn 0.5s ease 0.2s both;
    text-align: center;
}

.supported-header {
    color: #777;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.supported-header ion-icon {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.supported-header:hover ion-icon {
    transform: rotate(10deg);
}

.domains-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.domain {
    display: inline-block;
    background: #1a1a1a;
    padding: 6px 14px;
    font-size: 13px;
    color: #aaa;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.domain:hover {
    background: #2a2a2a;
    color: #fff;
    transform: translateY(-1px);
}

.domain.highlight {
    background: #4caf50;
    color: #111;
    border-color: #4caf50;
    transform: scale(1.05);
}

.domain.highlight:hover {
    background: #5db95d;
}

footer.site-footer {
    padding: 30px 0;
    width: 100%;
    margin-top: auto; 
    flex-shrink: 0;
}

.footer-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}