﻿:root {
    --bg-color: #f3f3f1;
    --text-primary: #000000;
    --text-secondary: #555555;
    --card-bg: #ffffff;
    --hover-bg: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #b0b0b0; /* Grey background matching image */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
}

.mobile-container {
    width: 100%;
    max-width: 480px; /* Mobile width */
    background-color: var(--bg-color);
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    padding: 24px;
}

.icon-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

    .icon-btn:hover {
        transform: scale(1.08);
        box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    }

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.profile-img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    background: white;
}

.profile-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    margin-top: 20px;
    text-align: center;
    letter-spacing: -0.3px;
}

.profile-bio {
    font-size: 14.5px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
}

.social-icon {
    color: var(--text-primary);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .social-icon:hover {
        transform: scale(1.15);
    }

.tabs {
    display: flex;
    background: #e0e0e0;
    border-radius: 24px;
    padding: 4px;
    margin-bottom: 24px;
    width: 170px;
}

.tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

    .tab.active {
        background: white;
        color: var(--text-primary);
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }

.links-container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

    /* Custom scrollbar for links container */
    .links-container::-webkit-scrollbar {
        width: 4px;
    }

    .links-container::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.1);
        border-radius: 4px;
    }

.link-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 8px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    min-height: 56px;
}

    .link-item:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

    .link-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.link-text {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    padding: 0 12px;
    letter-spacing: -0.2px;
}

.link-options {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: bold;
}

.footer-links-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 24px;
    font-weight: 500;
}

.qr-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.modal-content {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h2 {
        font-size: 18px;
        font-weight: 700;
    }

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px;
}

.modal-banner {
    background: #004d26; /* Dark green matching screenshot */
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
}

.banner-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 12px;
    background: white;
}

.modal-banner h3 {
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 700;
}

.modal-banner p {
    font-size: 14px;
    opacity: 0.9;
}

.share-options {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
}

    .share-options::-webkit-scrollbar {
        display: none;
    }

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 64px;
    cursor: pointer;
}

.share-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

    .share-icon-circle.bg-x {
        background: #000;
    }

    .share-icon-circle.bg-fb {
        background: #1877F2;
    }

    .share-icon-circle.bg-wa {
        background: #25D366;
    }

.share-item span {
    font-size: 12px;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.footer-promo h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-promo p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.footer-buttons {
    display: flex;
    gap: 12px;
}

.btn-dark {
    flex: 1;
    background: black;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.btn-light {
    flex: 1;
    background: white;
    color: black;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

@media (max-width: 480px) {
    body {
        padding: 0;
        background-color: var(--bg-color);
    }

    .mobile-container {
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        min-height: 100vh;
    }
}

.top-actions {
    width: 100%;
}

/* ================= MODERN LOGIN BOX ================= */

.login-card {
    /*width: calc(100% - 30px);*/
    width: 370px;
    max-width: 500px;
    margin: 0 auto 24px auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #eeeeee;
    overflow: hidden;
}

/* Blue top line */
.login-top-line {
    height: 5px;
    background: #12639a;
}

/* Header */
.login-header {
    padding: 18px 22px 10px 22px;
    text-align: center;
}

    .login-header h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #222222;
    }

    .login-header p {
        margin: 5px 0 0 0;
        font-size: 13px;
        color: #777777;
    }

/* Login Body */
.login-body {
    padding: 15px 24px 20px 24px;
}

/* Input group */
.login-input-group {
    position: relative;
    margin-bottom: 14px;
}

.login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777777;
    font-size: 16px;
    z-index: 2;
}

.login-input {
    width: 100%;
    height: 50px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    outline: none;
    background: #fafafa;
    padding: 0 15px 0 44px;
    font-size: 15px;
    color: #333333;
    transition: all 0.2s ease;
}

    .login-input:focus {
        border-color: #12639a;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(18, 99, 154, 0.08);
    }

    .login-input::placeholder {
        color: #999999;
    }

/* Login button */
.login-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: #ff9d2e;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 3px;
    transition: all 0.2s ease;
}

    .login-button:hover {
        background: #f28c18;
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(255, 157, 46, 0.25);
    }

/* Forgot links */
.login-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 13px;
}

    .login-links a {
        color: #12639a;
        text-decoration: none;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

.login-divider {
    color: #cccccc;
}

/* Mobile */
@media (max-width: 480px) {

    .login-card {
        /*width: calc(100% - 28px);*/
        width: 300px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .login-header {
        padding: 16px 18px 8px 18px;
    }

        .login-header h2 {
            font-size: 18px;
        }

        .login-header p {
            font-size: 12px;
        }

    .login-body {
        padding: 13px 20px 18px 20px;
    }

    .login-input {
        height: 48px;
    }

    .login-button {
        height: 48px;
    }
}
