/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.container {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 60px;
    max-width: 100%;
}

/* ===== LOGO ===== */
.logo {
    margin-bottom: 48px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    width: 200px;
    height: 80px;
}

/* ===== FORM STYLES ===== */
.main-form {
    width: 100%;
    max-width: 480px;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-group:focus-within {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.url-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #1a1a1a;
}

.url-input::placeholder {
    color: #a3a3a3;
}

.submit-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #000000;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.toast.success-blue {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.toast.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ===== RESULT CONTAINER ===== */
.result-container {
    width: 100%;
    max-width: 480px;
    margin-bottom: 48px;
    height: 75px;
    position: relative;
}

.result {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.result.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.result-group {
    display: flex;
    border: 1px dashed #0EAF00;
    border-radius: 12px;
    background: #F3FFF2;
    overflow: hidden;
}

.result-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #021D00;
    font-weight: 500;
}

.copy-btn {
    background: #F3FFF2;
    color: #021D00;
    border: none;
    padding: 16px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.copy-btn.copied {
    color: white;
}

.back-btn {
    display: block;
    align-items: center;
    justify-content: center;
    margin: 25px auto 0;
    padding: 5px 15px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.back-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #333;
}

.back-btn i {
    margin-right: 6px;
    font-size: 11px;
}

/* ===== FOOTER ===== */
.footer {
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin-top: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: #737373;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.footer-link:hover {
    color: #1a1a1a;
}

.footer-text {
    color: #a3a3a3;
    font-size: 12px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.footer-text a {
    color: #444444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #0a4d78;
}

/* ===== RECAPTCHA ===== */
.grecaptcha-badge { 
    visibility: hidden !important;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(15px) scale(0.98);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #a3a3a3;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #1a1a1a;
    background: #f5f5f5;
}

.modal-content {
    padding: 24px;
    line-height: 1.5;
    color: #444;
    font-size: 14px;
}

.modal-content p {
    margin-bottom: 14px;
}

.modal-content h3 {
    margin: 20px 0 10px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
}

.modal-content ul {
    margin-left: 18px;
    margin-bottom: 16px;
}

.modal-content li {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-email {
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.contact-email:hover {
    text-decoration: underline;
}

/* ===== SPONSOR/PR CONTAINER ===== */
.pr-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-bottom: 48px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 12px;
    border: 1px dashed #c3cfe2;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pr-container:hover {
    background: linear-gradient(135deg, #e4e8f0 0%, #f5f7fa 100%);
}

.pr-header {
	font-size: 12px;
	font-weight: 700;
}

.pr-header a:link,
.pr-header a:visited {
  color: #000;
  text-decoration: none;
}

.pr-header a:hover {
  color: #000;
  text-decoration: none;
}

.pr-text {
	font-size: 13px;
	font-weight: 400;
}

.pr-url {
  font-size: 11px;
  font-weight: 500;
}

.pr-url a:link,
.pr-url a:visited {
  color: #646464;
  text-decoration: none;
}

.pr-url a:hover {
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sponsor-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #efefef;
    color: #333;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pr-content {
    padding: 15px;
    text-align: center;
    color: #4a5568;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.pr-container.hidden {
    opacity: 0;
    height: 0;
    margin-bottom: 0;
    pointer-events: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 640px) {
    .container {
        padding: 20px 30px;
    }
    
    .logo img {
        width: 150px;
        height: 60px;
    }

    .submit-btn {
        font-size: 12px;
        border-top: 1px solid #e5e5e5;
        border-radius: 0 12px 12px 0;
    }
    
    .copy-btn {
        font-size: 12px;
        min-width: 50px;
    }

    .footer-links {
        gap: 16px;
    }
    
    .back-btn {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .modal {
        width: 100%;
        max-height: 85vh;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-content {
        padding: 20px;
        font-size: 13px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-content h3 {
        font-size: 14px;
    }
    
    .modal-content li {
        font-size: 13px;
    }
    
    .contact-email {
        font-size: 13px;
    }

    .pr-container {
        height: 85px;
    }
    
    .pr-content {
        font-size: 13px;
        padding: 12px;
    }
}