/* ============================================
   GREENPOST - X/Twitter Clone Professional
   ============================================ */

/* ----- ROOT VARIABLES ----- */
:root {
    --gp-bg: #000000;
    --gp-secondary: #16181C;
    --gp-border: #2F3336;
    --gp-text: #E7E9EA;
    --gp-text-secondary: #71767B;
    --gp-blue: #1D9BF0;
    --gp-blue-hover: #1A8CD8;
    --gp-green: #00BA7C;
    --gp-pink: #F91880;
    --gp-white: #FFFFFF;
    --gp-hover-bg: rgba(255, 255, 255, 0.03);
    --gp-hover-blue: rgba(29, 155, 240, 0.1);
    --gp-hover-green: rgba(0, 186, 124, 0.1);
    --gp-hover-pink: rgba(249, 24, 128, 0.1);
    --gp-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    --gp-radius: 9999px;
    --gp-radius-md: 16px;
}

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--gp-bg);
    color: var(--gp-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--gp-border);
    border-radius: var(--gp-radius);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gp-text-secondary);
}

/* ----- LINKS ----- */
a {
    color: var(--gp-blue);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ----- BUTTONS ----- */
.btn-primary {
    background-color: var(--gp-blue);
    color: var(--gp-white);
    border: none;
    border-radius: var(--gp-radius);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.2s;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: var(--gp-blue-hover);
    color: var(--gp-white);
}

.btn-outline {
    background: transparent;
    color: var(--gp-blue);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--gp-hover-blue);
}

.btn-green {
    background-color: var(--gp-green);
    color: var(--gp-white);
    border: none;
    border-radius: var(--gp-radius);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.2s;
    cursor: pointer;
}
.btn-green:hover {
    background-color: #00A86B;
    color: var(--gp-white);
}

.btn-pink {
    background-color: var(--gp-pink);
    color: var(--gp-white);
    border: none;
    border-radius: var(--gp-radius);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.2s;
    cursor: pointer;
}
.btn-pink:hover {
    background-color: #D4146A;
}

.btn-ghost {
    background: transparent;
    color: var(--gp-text);
    border: none;
    border-radius: var(--gp-radius);
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-ghost:hover {
    background: var(--gp-hover-bg);
}

/* ============================================
   LAYOUT - X/Twitter Style
   ============================================ */

/* ----- APP CONTAINER ----- */
.gp-app {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: var(--gp-bg);
}

.gp-wrapper {
    display: flex;
    width: 100%;
    max-width: 1280px;
    position: relative;
}

/* ----- LEFT SIDEBAR (Navigation) ----- */
.gp-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 275px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--gp-border);
    overflow-y: auto;
    flex-shrink: 0;
}

.gp-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 0;
}

/* Logo */
.gp-logo {
    padding: 12px;
    margin-bottom: 4px;
}
.gp-logo img {
    height: 36px;
    width: auto;
}
.gp-logo i {
    font-size: 32px;
    color: var(--gp-blue);
}

/* Nav Items */
.gp-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    border-radius: var(--gp-radius);
    color: var(--gp-text);
    font-size: 20px;
    font-weight: 400;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 2px;
}
.gp-nav-item:hover {
    background: var(--gp-hover-bg);
    color: var(--gp-text);
    text-decoration: none;
}
.gp-nav-item.active {
    font-weight: 700;
}
.gp-nav-item .nav-icon {
    font-size: 26px;
    width: 30px;
    text-align: center;
}
.gp-nav-item .nav-label {
    font-size: 20px;
    line-height: 1.2;
}
.gp-nav-item .nav-badge {
    background: var(--gp-blue);
    color: var(--gp-white);
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    border-radius: var(--gp-radius);
    min-width: 18px;
    text-align: center;
    margin-left: auto;
}

/* Post Button in Sidebar */
.gp-sidebar-post-btn {
    margin: 16px 0;
    padding: 0 16px;
}
.gp-sidebar-post-btn button {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    font-weight: 700;
    border-radius: var(--gp-radius);
    background: var(--gp-blue);
    color: var(--gp-white);
    border: none;
    transition: background 0.2s;
    cursor: pointer;
}
.gp-sidebar-post-btn button:hover {
    background: var(--gp-blue-hover);
}

/* User Profile in Sidebar */
.gp-sidebar-profile {
    margin-top: auto;
    padding: 12px 16px;
    border-radius: var(--gp-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.gp-sidebar-profile:hover {
    background: var(--gp-hover-bg);
}
.gp-sidebar-profile .profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.gp-sidebar-profile .profile-info {
    flex: 1;
    min-width: 0;
}
.gp-sidebar-profile .profile-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--gp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gp-sidebar-profile .profile-username {
    font-size: 14px;
    color: var(--gp-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gp-sidebar-profile .profile-more {
    color: var(--gp-text-secondary);
    font-size: 18px;
}

/* ----- MAIN CONTENT ----- */
.gp-main {
    flex: 1;
    min-width: 0;
    border-right: 1px solid var(--gp-border);
    max-width: 600px;
}

/* Header */
.gp-main-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-bottom: 1px solid var(--gp-border);
}
.gp-main-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* ----- POST COMPOSER ----- */
.gp-composer {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gp-border);
    display: flex;
    gap: 12px;
}
.gp-composer .composer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.gp-composer .composer-body {
    flex: 1;
    min-width: 0;
}
.gp-composer .composer-textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--gp-text);
    font-size: 20px;
    line-height: 1.5;
    resize: none;
    outline: none;
    font-family: inherit;
    min-height: 60px;
    padding: 4px 0;
}
.gp-composer .composer-textarea::placeholder {
    color: var(--gp-text-secondary);
}
.gp-composer .composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gp-border);
}
.gp-composer .composer-tools {
    display: flex;
    gap: 4px;
}
.gp-composer .composer-tools button {
    background: transparent;
    border: none;
    color: var(--gp-blue);
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.gp-composer .composer-tools button:hover {
    background: var(--gp-hover-blue);
}
.gp-composer .composer-tools .char-count {
    color: var(--gp-text-secondary);
    font-size: 13px;
    padding: 8px 12px;
}
.gp-composer .composer-tools .char-count.warning {
    color: #FFD700;
}
.gp-composer .composer-tools .char-count.danger {
    color: #FF4444;
}
.gp-composer .composer-submit {
    padding: 8px 24px;
    border-radius: var(--gp-radius);
    background: var(--gp-blue);
    color: var(--gp-white);
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.gp-composer .composer-submit:hover {
    background: var(--gp-blue-hover);
}
.gp-composer .composer-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.gp-composer .image-preview {
    margin-top: 8px;
    position: relative;
    display: inline-block;
}
.gp-composer .image-preview img {
    max-height: 200px;
    border-radius: var(--gp-radius-md);
}
.gp-composer .image-preview .remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--gp-white);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- POST ITEM ----- */
.gp-post {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gp-border);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.1s;
}
.gp-post:hover {
    background: var(--gp-hover-bg);
}
.gp-post .post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.gp-post .post-body {
    flex: 1;
    min-width: 0;
}
.gp-post .post-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.gp-post .post-name {
    font-weight: 700;
    color: var(--gp-text);
    font-size: 15px;
}
.gp-post .post-name:hover {
    text-decoration: underline;
}
.gp-post .post-username {
    color: var(--gp-text-secondary);
    font-size: 15px;
}
.gp-post .post-time {
    color: var(--gp-text-secondary);
    font-size: 15px;
}
.gp-post .post-time::before {
    content: "·";
    margin: 0 4px;
}
.gp-post .post-content {
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    color: var(--gp-text);
    margin: 4px 0;
    white-space: pre-wrap;
}
.gp-post .post-media {
    margin-top: 8px;
    border-radius: var(--gp-radius-md);
    overflow: hidden;
    background: var(--gp-secondary);
}
.gp-post .post-media img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.gp-post .post-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: 12px;
    gap: 8px;
}
.gp-post .post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--gp-text-secondary);
    font-size: 13px;
    padding: 4px 8px;
    border-radius: var(--gp-radius);
    cursor: pointer;
    transition: all 0.2s;
}
.gp-post .post-action i {
    font-size: 18px;
    transition: all 0.2s;
}
.gp-post .post-action .count {
    font-size: 13px;
}
.gp-post .post-action:hover {
    color: var(--gp-blue);
}
.gp-post .post-action:hover i {
    color: var(--gp-blue);
}
.gp-post .post-action.reply:hover {
    color: var(--gp-blue);
}
.gp-post .post-action.repost:hover {
    color: var(--gp-green);
}
.gp-post .post-action.repost.active {
    color: var(--gp-green);
}
.gp-post .post-action.like:hover {
    color: var(--gp-pink);
}
.gp-post .post-action.like.active {
    color: var(--gp-pink);
}
.gp-post .post-action.like.active i {
    font-weight: 900;
}
.gp-post .post-action.bookmark:hover {
    color: var(--gp-blue);
}
.gp-post .post-action.bookmark.active {
    color: var(--gp-blue);
}

/* ----- RIGHT SIDEBAR ----- */
.gp-right {
    width: 350px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}
.gp-right-inner {
    padding: 12px 0;
}

/* Search */
.gp-search {
    position: sticky;
    top: 0;
    background: var(--gp-bg);
    padding: 4px 0 12px 0;
    z-index: 5;
}
.gp-search-box {
    background: var(--gp-secondary);
    border-radius: var(--gp-radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}
.gp-search-box:focus-within {
    border-color: var(--gp-blue);
    background: var(--gp-bg);
}
.gp-search-box i {
    color: var(--gp-text-secondary);
    font-size: 18px;
}
.gp-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--gp-text);
    font-size: 15px;
    width: 100%;
    font-family: inherit;
}
.gp-search-box input::placeholder {
    color: var(--gp-text-secondary);
}

/* Trends / Cards */
.gp-card {
    background: var(--gp-secondary);
    border-radius: var(--gp-radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}
.gp-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.gp-card-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--gp-border);
    cursor: pointer;
    transition: background 0.2s;
}
.gp-card-item:last-child {
    border-bottom: none;
}
.gp-card-item:hover {
    background: var(--gp-hover-bg);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--gp-radius);
}
.gp-card-item .item-label {
    color: var(--gp-text-secondary);
    font-size: 13px;
}
.gp-card-item .item-title {
    font-weight: 700;
    font-size: 15px;
}
.gp-card-item .item-meta {
    color: var(--gp-text-secondary);
    font-size: 13px;
}

/* Who to follow */
.gp-suggest-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.gp-suggest-user .suggest-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.gp-suggest-user .suggest-info {
    flex: 1;
    min-width: 0;
}
.gp-suggest-user .suggest-name {
    font-weight: 700;
    font-size: 15px;
}
.gp-suggest-user .suggest-username {
    color: var(--gp-text-secondary);
    font-size: 14px;
}
.gp-suggest-user .suggest-follow {
    flex-shrink: 0;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.gp-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gp-auth-box {
    max-width: 400px;
    width: 100%;
    padding: 32px;
}
.gp-auth-box .auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.gp-auth-box .auth-logo i {
    font-size: 48px;
    color: var(--gp-blue);
}
.gp-auth-box h1 {
    font-size: 31px;
    font-weight: 700;
    margin-bottom: 8px;
}
.gp-auth-box p {
    color: var(--gp-text-secondary);
}
.gp-auth-box .form-group {
    margin-bottom: 16px;
}
.gp-auth-box .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}
.gp-auth-box .form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--gp-secondary);
    border: 1px solid var(--gp-border);
    border-radius: 8px;
    color: var(--gp-text);
    font-size: 16px;
    transition: border-color 0.2s;
    font-family: inherit;
}
.gp-auth-box .form-control:focus {
    outline: none;
    border-color: var(--gp-blue);
}
.gp-auth-box .form-control::placeholder {
    color: var(--gp-text-secondary);
}
.gp-auth-box .btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}
.gp-auth-box .auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--gp-text-secondary);
}
.gp-auth-box .auth-divider::before,
.gp-auth-box .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gp-border);
}
.gp-auth-box .auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gp-text-secondary);
}
.gp-auth-box .auth-footer a {
    color: var(--gp-blue);
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */

/* Mobile (< 500px) */
@media (max-width: 499px) {
    /* Sidebar - Bottom Navigation */
    .gp-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        border-right: none;
        border-top: 1px solid var(--gp-border);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        padding: 4px 0;
        z-index: 100;
        flex-direction: row;
        justify-content: space-around;
    }
    .gp-sidebar-inner {
        flex-direction: row;
        width: 100%;
        padding: 0;
        align-items: center;
        justify-content: space-around;
    }
    .gp-sidebar .gp-logo,
    .gp-sidebar .gp-sidebar-post-btn,
    .gp-sidebar .gp-sidebar-profile {
        display: none !important;
    }
    .gp-nav-item {
        padding: 8px 12px;
        margin: 0;
        flex-direction: column;
        gap: 0;
        font-size: 12px;
    }
    .gp-nav-item .nav-icon {
        font-size: 22px;
        width: auto;
    }
    .gp-nav-item .nav-label {
        font-size: 10px;
        display: block !important;
    }
    .gp-nav-item .nav-badge {
        display: none;
    }
    .gp-nav-item.active .nav-label {
        color: var(--gp-blue);
    }

    /* Mobile Bottom Nav - Only show icons for some items */
    .gp-nav-item .nav-label {
        display: block !important;
        font-size: 10px;
    }

    /* Hide right sidebar on mobile */
    .gp-right {
        display: none !important;
    }

    /* Main content full width */
    .gp-main {
        max-width: 100%;
        border-right: none;
        padding-bottom: 60px;
    }

    /* Composer adjustments */
    .gp-composer .composer-textarea {
        font-size: 17px;
        min-height: 40px;
    }
    .gp-composer .composer-tools button {
        font-size: 16px;
        padding: 6px;
    }
    .gp-composer .composer-submit {
        padding: 6px 16px;
        font-size: 13px;
    }

    /* Post adjustments */
    .gp-post .post-avatar {
        width: 36px;
        height: 36px;
    }
    .gp-post .post-name,
    .gp-post .post-username,
    .gp-post .post-time {
        font-size: 13px;
    }
    .gp-post .post-content {
        font-size: 14px;
    }
    .gp-post .post-action i {
        font-size: 16px;
    }
    .gp-post .post-action .count {
        font-size: 12px;
    }

    /* Auth */
    .gp-auth-box {
        padding: 16px;
    }
    .gp-auth-box h1 {
        font-size: 24px;
    }
}

/* Tablet (500px - 1024px) */
@media (min-width: 500px) and (max-width: 1024px) {
    /* Collapsed sidebar */
    .gp-sidebar {
        width: 88px;
        padding: 0 8px;
    }
    .gp-nav-item {
        padding: 12px 14px;
        justify-content: center;
        gap: 0;
    }
    .gp-nav-item .nav-icon {
        font-size: 26px;
        width: auto;
    }
    .gp-nav-item .nav-label {
        display: none !important;
    }
    .gp-sidebar-post-btn button {
        padding: 12px;
        font-size: 14px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    .gp-sidebar-post-btn button span {
        display: none;
    }
    .gp-sidebar-post-btn button i {
        display: block;
        font-size: 24px;
    }
    .gp-sidebar-profile {
        padding: 8px;
        justify-content: center;
    }
    .gp-sidebar-profile .profile-info,
    .gp-sidebar-profile .profile-more {
        display: none !important;
    }
    .gp-sidebar-profile .profile-avatar {
        width: 40px;
        height: 40px;
    }
    .gp-logo img {
        height: 28px;
    }

    .gp-main {
        max-width: 100%;
    }
    .gp-right {
        width: 280px;
        padding: 0 12px;
    }
}

/* Small Desktop (1024px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .gp-sidebar {
        width: 220px;
    }
    .gp-nav-item .nav-label {
        font-size: 17px;
    }
    .gp-right {
        width: 290px;
    }
}

/* Large Desktop > 1280px */
@media (min-width: 1281px) {
    .gp-wrapper {
        padding: 0;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.text-muted {
    color: var(--gp-text-secondary) !important;
}
.text-blue {
    color: var(--gp-blue) !important;
}
.text-green {
    color: var(--gp-green) !important;
}
.text-pink {
    color: var(--gp-pink) !important;
}

.hidden {
    display: none !important;
}
.text-center {
    text-align: center !important;
}
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }

/* Loading spinner */
.gp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gp-border);
    border-top-color: var(--gp-blue);
    border-radius: 50%;
    animation: gp-spin 0.6s linear infinite;
}
@keyframes gp-spin {
    to { transform: rotate(360deg); }
}

/* Toast notification */
.gp-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gp-secondary);
    color: var(--gp-text);
    padding: 12px 24px;
    border-radius: var(--gp-radius);
    border: 1px solid var(--gp-border);
    box-shadow: var(--gp-shadow);
    z-index: 999;
    animation: gp-toast-in 0.3s ease;
}
@keyframes gp-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Modal overlay */
.gp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gp-modal {
    background: var(--gp-secondary);
    border-radius: var(--gp-radius-md);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--gp-border);
}
.gp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.gp-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.gp-modal-close {
    background: transparent;
    border: none;
    color: var(--gp-text);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s;
}
.gp-modal-close:hover {
    background: var(--gp-hover-bg);
}