/* Font Faces */
@font-face {
    font-family: 'Moul';
    src: url('../assets/fonts/moul.ttf') format('truetype');
}

@font-face {
    font-family: 'M PLUS 1p';
    src: url('../assets/fonts/m-1p/mplus-1p-regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'M PLUS 1p';
    src: url('../assets/fonts/m-1p/mplus-1p-medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'M PLUS 1p';
    src: url('../assets/fonts/m-1p/mplus-1p-bold.ttf') format('truetype');
    font-weight: 700;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #151312;
    color: #FFFFFF;
    font-family: 'M PLUS 1p', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 30px 60px;
}

.logo img {
    height: 70px;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-family: 'Moul', serif;
    font-size: 48px;
    color: #FFFFFF;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 18px;
    color: #737373;
    line-height: 1.6;
}

/* Tab Buttons */
.tab-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn img {
    width: 20px;
    height: 20px;
}

.tab-btn:first-child {
    background-color: #C5FF41;
    color: #151312;
}

.tab-btn:last-child {
    background-color: #FFFFFF;
    color: #151312;
}

.tab-btn.active {
    box-shadow: 0 8px 20px rgba(197, 255, 65, 0.4);
    transform: translateY(-2px);
}

.tab-btn:last-child.active {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 255, 65, 0.3);
}

.tab-btn:last-child:hover {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Content Card */
.content-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 50px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    gap: 40px;
}

/* Form Section */
.form-section {
    flex: 1;
}

.form-section h2 {
    color: #151312;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.no-credit {
    color: #737373;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-section label {
    display: block;
    color: #151312;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.form-section input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #1B86FF;
    border-radius: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 14px;
    color: #151312;
    margin-bottom: 28px;
    transition: all 0.3s ease;
}

.form-section input:focus {
    outline: none;
    border-color: #1B86FF;
    box-shadow: 0 0 0 3px rgba(27, 134, 255, 0.1);
}

.form-section input::placeholder {
    color: #737373;
}

.action-btn {
    background-color: #F46C38;
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #e05a28;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 108, 56, 0.4);
}

/* Preview Section - Short Link */
.preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.preview-banner {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

/* Results Display */
.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.url-display {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.url-display a {
    flex: 1;
    padding: 0.8rem;
    background: white;
    border: 2px solid #1B86FF;
    border-radius: 8px;
    color: #1B86FF;
    text-decoration: none;
    font-weight: 600;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: #1B86FF;
    color: white;
}

.btn-small:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

/* QR Preview Section */
.qr-preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-code {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.qr-action-btn {
    padding: 10px 16px;
    border: none;
    background-color: #F46C38;
    color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
}

.qr-action-btn:hover {
    background-color: #e05a28;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 108, 56, 0.4);
}

/* Footer */
footer {
    padding: 30px 60px;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #737373;
    font-size: 14px;
}

.start-now {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background-color: #1B86FF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(27, 134, 255, 0.3);
}

.footer-logo {
    width: 28px;
    height: 28px;
}

.start-now span {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
}

.footer-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.footer-btn img {
    width: 22px;
    height: 22px;
}

/* Overlay Base Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #737373;
    cursor: pointer;
}

.close-overlay:hover {
    color: #151312;
}

/* Auth Modal */
.auth-modal h2 {
    color: #151312;
    margin-bottom: 10px;
}

.auth-modal p {
    color: #737373;
    margin-bottom: 30px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-btn-google-btn, .auth-btn-zoho-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    background-color: #FFFFFF;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #151312;
}

.auth-btn-zoho-btn:hover, .auth-btn-google-btn:hover {
    border-color: #1B86FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 134, 255, 0.2);
}

.auth-btn-google-btn img{
    width: 24px;
    height: 24px;
}

.auth-btn-zoho-btn img{
    width: 42px;
    height: 24px;
}

/* Profile Modal */
.profile-modal {
    max-width: 700px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E0E0E0;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #C5FF41;
    color: #151312;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'M PLUS 1p', sans-serif;
    border: 3px solid #C5FF41;
    user-select: none;
}

.profile-header h2 {
    color: #151312;
    margin: 0;
}

.profile-header p {
    color: #737373;
    margin: 5px 0 0 0;
}

.logout-btn {
    margin-left: auto;
    padding: 10px 20px;
    background-color: #F46C38;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.logout-btn:hover {
    background-color: #e05a28;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background-color: #F5F5F5;
    border-radius: 6px;
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #151312;
}

.profile-tab.active {
    background-color: #C5FF41;
    color: #151312;
}

/* URL/QR Cards */
.url-card, .qr-card {
    background-color: #F8F8F8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.url-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.url-info h3 {
    color: #151312;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.url-info p {
    color: #737373;
    font-size: 14px;
    margin: 5px 0;
}

.url-actions {
    display: flex;
    gap: 10px;
}

.action-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background-color: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn:hover {
    background-color: #E0E0E0;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E0E0E0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #737373;
    font-size: 12px;
}

.stat-value {
    color: #151312;
    font-size: 18px;
    font-weight: 600;
}

/* Top Right Auth */
.top-right-auth {
    position: fixed;
    top: 30px;
    right: 60px;
    z-index: 100;
}

.login-btn {
    padding: 10px 24px;
    background-color: #1B86FF;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 134, 255, 0.3);
}

.profile-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #C5FF41;
    transition: all 0.3s ease;
    background-color: #C5FF41;
    color: #151312;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'M PLUS 1p', sans-serif;
    user-select: none;
}

.profile-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(197, 255, 65, 0.4);
}

/* QR Code Customization Styles */
.qr-customization {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #DEE2E6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.qr-customization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B86FF, #C5FF41, #F46C38);
}

.qr-customization h3 {
    color: #151312;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.customization-row {
    display: flex;
    gap: 20px;
}

.color-picker-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-picker-group label {
    color: #151312;
    font-size: 14px;
    font-weight: 500;
}

.color-input {
    width: 100%;
    height: 40px;
    border: 3px solid #E0E0E0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.color-input:hover {
    border-color: #1B86FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 134, 255, 0.3);
}

.color-input:focus {
    outline: none;
    border-color: #1B86FF;
    box-shadow: 0 0 0 4px rgba(27, 134, 255, 0.2), 0 4px 15px rgba(27, 134, 255, 0.3);
}

.color-value {
    color: #495057;
    font-size: 12px;
    font-family: 'M PLUS 1p', monospace;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #DEE2E6;
    margin-top: 5px;
    display: inline-block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #151312;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background-color: rgba(27, 134, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1B86FF;
}

.gradient-picker-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(27, 134, 255, 0.2);
}

.gradient-type-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.gradient-type-picker label {
    color: #151312;
    font-weight: 600;
    font-size: 14px;
}

.gradient-select {
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #151312;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gradient-select:focus {
    outline: none;
    border-color: #1B86FF;
    box-shadow: 0 0 0 3px rgba(27, 134, 255, 0.1), 0 2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.gradient-select:hover {
    border-color: #1B86FF;
    transform: translateY(-1px);
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
/* Update Modal Specific Styles */
#update-modal .overlay-content {
    max-width: 600px;
    padding: 50px;
}

#update-modal .overlay-content h3 {
    color: #151312;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

#update-url-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #1B86FF;
    border-radius: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 16px;
    color: #151312;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#update-url-input:focus {
    outline: none;
    border-color: #1B86FF;
    box-shadow: 0 0 0 3px rgba(27, 134, 255, 0.1);
}

#update-url-input::placeholder {
    color: #737373;
}

/* Modal Buttons Styling */
#update-modal .modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 0;
}

#update-modal .modal-buttons .action-btn {
    flex: 1;
    padding: 16px 28px;
    background-color: #F46C38;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

#update-modal .modal-buttons .action-btn:hover {
    background-color: #e05a28;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 108, 56, 0.4);
}

#update-modal .modal-buttons .btn {
    flex: 1;
    padding: 16px 28px;
    background-color: #E0E0E0;
    color: #151312;
    border: none;
    border-radius: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#update-modal .modal-buttons .btn:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
}

/* Delete Modal Specific Styles */
#delete-modal .overlay-content {
    max-width: 450px;
    padding: 40px;
}

#delete-modal .overlay-content h3 {
    color: #151312;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

#delete-modal .modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 0;
}

#delete-modal .modal-buttons button {
    flex: 1;
    width: 50%;
    height: fit-content;
    min-width: 120px;
    max-width: none;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

#delete-modal .modal-buttons .action-btn {
    background-color: #dc3545;
    color: #FFFFFF;
}

#delete-modal .modal-buttons .action-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

#delete-modal .modal-buttons .btn {
    background-color: #E0E0E0;
    color: #151312;
}

#delete-modal .modal-buttons .btn:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #C5FF41;
    color: #151312;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: 'M PLUS 1p', sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: bottom 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    min-width: 250px;
    text-align: center;
}

.toast.show {
    bottom: 40px;
    opacity: 1;
}

.toast.error {
    background-color: #FF4444;
    color: #FFFFFF;
}

.toast.success {
    background-color: #C5FF41;
    color: #151312;
}

@media (max-width: 768px) {
    .toast {
        min-width: 200px;
        font-size: 14px;
        padding: 14px 24px;
    }
}

/* Responsive Design */

/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    /* Hide start-now section on mobile */
    .start-now {
        display: none;
    }

    /* Header adjustments */
    header {
        padding: 15px 20px;
    }

    .logo img {
        height: 50px;
    }

    /* Top right auth adjustments */
    .top-right-auth {
        top: 15px;
        right: 20px;
    }

    .login-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .profile-icon {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }

    /* Main content adjustments */
    main {
        padding: 20px 15px;
    }

    /* Hero section mobile adjustments */
    .hero {
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* Tab buttons mobile */
    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .tab-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
        justify-content: center;
    }

    .tab-btn img {
        width: 18px;
        height: 18px;
    }

    /* Content card mobile */
    .content-card {
        padding: 20px;
        margin: 0 10px;
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    }

    .tab-content.active {
        flex-direction: column;
        gap: 20px;
    }

    /* Form section mobile */
    .form-section h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .form-section label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .form-section input {
        padding: 12px 14px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .action-btn {
        width: 50%;
        padding: 14px 24px;
        font-size: 14px;
    }

    /* Preview section mobile */
    .preview-section {
        align-items: center;
    }

    .preview-banner {
        width: 200px;
        height: 200px;
    }

    /* QR customization mobile */
    .customization-row {
        flex-direction: column;
        gap: 15px;
    }

    .qr-customization {
        padding: 20px;
        margin: 20px 0;
    }

    .qr-customization h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .color-input {
        height: 35px;
    }

    .gradient-picker-group {
        padding: 15px;
        gap: 0.75rem;
    }

    /* QR code display mobile */
    .qr-code {
        width: 180px;
        height: 180px;
    }

    .download-buttons {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .qr-action-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Footer mobile */
    footer {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .copyright {
        font-size: 12px;
    }

    /* Overlay and modal mobile improvements */
    .overlay-content {
        width: 95%;
        max-width: 350px;
        padding: 25px 20px;
        margin: 20px;
        max-height: 85vh;
        border-radius: 12px;
    }

    .close-overlay {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }

    /* Auth modal mobile */
    .auth-modal h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .auth-modal p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .auth-btn-google-btn, .auth-btn-zoho-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .auth-btn-google-btn img {
        width: 20px;
        height: 20px;
    }

    .auth-btn-zoho-btn img {
        width: 35px;
        height: 20px;
    }

    /* Profile modal mobile */
    .profile-modal {
        max-width: 95%;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .profile-pic {
        width: 50px;
        height: 50px;
    }

    .profile-header h2 {
        font-size: 18px;
    }

    .profile-header p {
        font-size: 14px;
    }

    .logout-btn {
        margin: 0;
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Profile tabs mobile */
    .profile-tabs {
        gap: 5px;
        margin-bottom: 15px;
    }

    .profile-tab {
        padding: 10px 8px;
        font-size: 14px;
    }

    /* URL/QR cards mobile */
    .url-card, .qr-card {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .url-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .url-info h3 {
        font-size: 14px;
        word-break: break-all;
    }

    .url-info p {
        font-size: 12px;
    }

    .url-actions {
        align-self: flex-end;
        gap: 8px;
    }

    .action-icon-btn {
        width: 32px;
        height: 32px;
    }

    .stats-row {
        gap: 15px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 16px;
    }

    /* Update/Delete modal mobile */
    #update-modal .overlay-content,
    #delete-modal .overlay-content {
        max-width: 85%;
        padding: 25px 20px;
    }

    #update-modal .overlay-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    #update-url-input {
        padding: 12px 14px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .modal-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .modal-buttons button {
        width: 50%;
        padding: 12px 20px;
        font-size: 14px;
    }

    #delete-modal .overlay-content h3 {
        font-size: 18px;
        text-align: center;
    }

    /* Toast mobile */
    .toast {
        min-width: 280px;
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 6px;
        left: 50%;
        right: auto;
        margin: 0 10px;
        width: calc(100% - 40px);
        max-width: 320px;
    }

    /* Results display mobile */
    .result {
        margin-top: 1rem;
        padding: 15px;
    }

    .url-display {
        flex-direction: column;
        gap: 10px;
    }

    .url-display a {
        padding: 12px;
        font-size: 14px;
        word-break: break-all;
    }

    .btn-small {
        padding: 10px 20px;
        font-size: 14px;
        align-self: center;
        width: fit-content;
    }
}

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Header adjustments */
    header {
        padding: 25px 40px;
    }

    .logo img {
        height: 60px;
    }

    /* Top right auth adjustments */
    .top-right-auth {
        top: 25px;
        right: 40px;
    }

    /* Main content adjustments */
    main {
        padding: 30px 25px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 17px;
    }

    /* Content card tablet */
    .content-card {
        padding: 40px;
        max-width: 800px;
    }

    .tab-content.active {
        gap: 35px;
    }

    /* Preview adjustments */
    .preview-banner {
        width: 250px;
        height: 250px;
    }

    .qr-code {
        width: 220px;
        height: 220px;
    }

    /* Footer tablet */
    footer {
        padding: 25px 40px;
    }

    /* Overlay tablet */
    .overlay-content {
        max-width: 600px;
        padding: 35px;
    }

    /* Profile modal tablet */
    .profile-modal {
        max-width: 650px;
    }
}

/* Extra Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    /* Further mobile optimizations */
    .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 13px;
        padding: 0 5px;
    }

    .content-card {
        margin: 0 5px;
        padding: 15px;
    }

    .form-section h2 {
        font-size: 20px;
    }

    .form-section input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .action-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        max-width: 250px;
    }

    .overlay-content {
        width: 90%;
        max-width: 400px;
        padding: 20px 15px;
        margin: 10px;
    }

    .auth-modal h2 {
        font-size: 18px;
    }

    .auth-btn-google-btn, .auth-btn-zoho-btn {
        padding: 10px 14px;
        font-size: 13px;
        gap: 10px;
    }

    .profile-header {
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .profile-pic {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .profile-header h2 {
        font-size: 16px;
    }

    .profile-header p {
        font-size: 13px;
    }

    .url-card, .qr-card {
        padding: 12px;
    }

    .url-info h3 {
        font-size: 13px;
    }

    .url-info p {
        font-size: 11px;
    }

    .action-icon-btn {
        width: 28px;
        height: 28px;
    }

    .toast {
        min-width: 260px;
        font-size: 13px;
        padding: 10px 16px;
        width: calc(100% - 30px);
        max-width: 280px;
        margin: 0 15px;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    .preview-banner {
        width: 160px;
        height: 160px;
    }
}

/* Large Desktop Styles (1025px+) */
@media (min-width: 1025px) {
    .content-card {
        max-width: 1000px;
    }

    .hero-title {
        font-size: 52px;
    }

    .overlay-content {
        max-width: 500px;
    }

    .profile-modal {
        max-width: 750px;
    }
}
