/* Agent AutoBlog - Premium Dark Futuristic Theme */
/* Inspired by: Cybertruck, UFO Tech, F1 Racing, Brushed Metal */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Rajdhani:wght@500;600;700&display=swap');

@font-face {
    font-family: 'Behind the Gesture';
    src: url('/fonts/Behind the Gesture.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Core Colors */
    --color-bg-deep: #050506;
    --color-bg: #0a0a0c;
    --color-bg-elevated: #101014;
    --color-surface: #16161a;
    --color-surface-light: #1c1c22;

    /* Metallic Colors */
    --color-metal-dark: #2a2a30;
    --color-metal: #4a4a54;
    --color-metal-light: #6a6a76;
    --color-chrome: #8a8a96;
    --color-silver: #b8b8c4;
    --color-silver-bright: #d4d4dc;

    /* Text Colors */
    --color-text: #ffffff;
    --color-text-muted: #6a6a76;
    --color-text-dim: #3a3a44;

    /* Accent - Cold Cyan Glow */
    --color-glow: #00d4ff;
    --color-glow-dim: rgba(0, 212, 255, 0.15);
    --color-glow-subtle: rgba(0, 212, 255, 0.08);

    /* Status */
    --color-error: #ff2d55;
    --color-success: #30d158;

    /* Borders */
    --border-sharp: 1px solid var(--color-metal-dark);
    --border-glow: 1px solid var(--color-metal);
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: var(--color-bg-deep);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   LOGIN PAGE
   ================================ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-deep);
}

/* Background Effects */
.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Grid Pattern */
.login-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, var(--color-metal-dark) 1px, transparent 1px),
        linear-gradient(var(--color-metal-dark) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.12;
}

/* Diagonal Racing Stripes */
.login-bg::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 60%;
    width: 200%;
    height: 300%;
    background: repeating-linear-gradient(
        -60deg,
        transparent,
        transparent 120px,
        var(--color-metal-dark) 120px,
        var(--color-metal-dark) 122px
    );
    opacity: 0.25;
}

/* Metallic Light Sweep */
.login-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02),
        transparent
    );
    transform: skewX(-20deg);
    animation: lightSweep 8s ease-in-out infinite;
}

@keyframes lightSweep {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* Left Panel - Branding */
.login-brand-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    z-index: 1;
}

.brand-content {
    max-width: 560px;
    margin-left: auto;
    margin-right: 6rem;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo-icon-svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Behind the Gesture', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* Tagline */
.brand-tagline {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.brand-tagline span {
    display: block;
    font-style: italic;
    transform: skewX(-8deg);
    transform-origin: left;
}

.brand-tagline .highlight {
    color: var(--color-silver);
    -webkit-text-stroke: 1px var(--color-chrome);
}

.brand-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 400px;
    letter-spacing: 0.02em;
}

/* Feature List */
.brand-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-surface);
    border-left: 2px solid var(--color-metal);
    transition: all 0.2s ease;
}

.feature-item:hover {
    border-left-color: var(--color-glow);
    background: var(--color-surface-light);
}

.feature-icon {
    width: 8px;
    height: 8px;
    background: var(--color-chrome);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.feature-text {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-silver);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Right Panel - Login Form */
.login-form-panel {
    width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--color-bg);
    border-left: var(--border-sharp);
    position: relative;
    z-index: 2;
}

/* Metallic Edge Highlight */
.login-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-metal-light) 30%,
        var(--color-chrome) 50%,
        var(--color-metal-light) 70%,
        transparent
    );
}

/* Top Corner Accent */
.login-form-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-metal));
}

/* Form Header */
.form-header {
    margin-bottom: 2.5rem;
}

.form-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-style: italic;
    transform: skewX(-4deg);
}

.form-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-left: 2px solid var(--color-glow);
    margin-bottom: 2rem;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: var(--color-glow);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--color-glow); }
    50% { opacity: 0.5; box-shadow: 0 0 2px var(--color-glow); }
}

.status-text {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-glow);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.625rem;
}

.form-label::before {
    content: '';
    width: 12px;
    height: 2px;
    background: var(--color-metal);
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3rem;
    background: var(--color-bg-deep);
    border: 1px solid var(--color-metal-dark);
    color: var(--color-text);
    font-size: 0.9375rem;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-metal);
    background: var(--color-surface);
}

.form-input:focus + .input-indicator {
    background: var(--color-glow);
    box-shadow: 0 0 8px var(--color-glow-dim);
}

.form-input::placeholder {
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

.input-indicator {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-metal-dark);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: all 0.2s ease;
}

/* Submit Button */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-metal) 0%, var(--color-metal-dark) 100%);
    color: var(--color-silver-bright);
    border: 1px solid var(--color-metal);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-metal-light) 0%, var(--color-metal) 100%);
    border-color: var(--color-chrome);
    color: var(--color-text);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:disabled {
    background: var(--color-surface);
    border-color: var(--color-metal-dark);
    color: var(--color-text-dim);
    cursor: not-allowed;
}

.btn-arrow {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-arrow span {
    display: block;
    width: 8px;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.btn-arrow span:last-child {
    width: 4px;
}

.btn:hover .btn-arrow span:first-child {
    width: 16px;
}

/* Alert Message */
.alert {
    padding: 1rem 1.25rem;
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.alert-icon {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.alert-error {
    border-color: var(--color-error);
    color: var(--color-error);
}

.alert-error .alert-icon {
    background: var(--color-error);
}

.alert-success {
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-success .alert-icon {
    background: var(--color-success);
}

.hidden {
    display: none;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-silver-bright);
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Footer */
.form-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: var(--border-sharp);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.65rem;
    color: var(--color-text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-version {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-metal);
    letter-spacing: 0.1em;
}

/* ================================
   DASHBOARD STYLES
   ================================ */

.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-deep);
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--color-bg);
    border-bottom: var(--border-sharp);
    position: relative;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-glow), transparent);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.header-logo-text {
    font-family: 'Behind the Gesture', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    text-align: right;
}

.user-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.user-role {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-logout {
    padding: 0.625rem 1.25rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--color-metal-dark);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    border-color: var(--color-metal);
    color: var(--color-silver);
    background: var(--color-surface);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

/* Grid Background */
.dashboard-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, var(--color-metal-dark) 1px, transparent 1px),
        linear-gradient(var(--color-metal-dark) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.08;
    pointer-events: none;
}

.welcome-card {
    text-align: center;
    padding: 4rem;
    background: var(--color-bg);
    border: var(--border-sharp);
    position: relative;
    z-index: 1;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-glow), var(--color-metal), transparent);
}

.welcome-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-style: italic;
    transform: skewX(-4deg);
}

.welcome-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ================================
   INSTALL PAGE
   ================================ */

.install-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--color-bg-deep);
    position: relative;
}

.install-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, var(--color-metal-dark) 1px, transparent 1px),
        linear-gradient(var(--color-metal-dark) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.08;
    pointer-events: none;
}

.install-card {
    width: 100%;
    max-width: 520px;
    background: var(--color-bg);
    border: var(--border-sharp);
    position: relative;
    z-index: 1;
}

.install-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-glow), var(--color-metal), transparent);
}

.install-header {
    padding: 2rem 2rem 0;
    border-bottom: var(--border-sharp);
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.install-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    font-style: italic;
    transform: skewX(-4deg);
}

.install-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.install-body {
    padding: 2rem;
}

.install-warning {
    padding: 1rem 1.25rem;
    background: rgba(255, 45, 85, 0.08);
    border-left: 2px solid var(--color-error);
    color: var(--color-error);
    font-size: 0.8125rem;
    margin-bottom: 2rem;
}

.install-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: var(--border-sharp);
}

.install-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-silver);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--color-metal);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
}

.status-dot.success {
    background: var(--color-success);
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.4);
}

.status-dot.error {
    background: var(--color-error);
    box-shadow: 0 0 8px rgba(255, 45, 85, 0.4);
}

.status-label {
    font-size: 0.8125rem;
    color: var(--color-text);
}

.install-footer {
    padding: 1.25rem 2rem;
    border-top: var(--border-sharp);
    text-align: center;
}

.install-footer a {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-silver);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.install-footer a:hover {
    color: var(--color-glow);
}

/* ================================
   LOADING SCREEN - AGENT X
   Classified AI System / Alien-tech / Motorsport Precision
   ================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030304;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s linear;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-screen.hidden {
    display: none;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Title */
.loading-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-text {
    font-family: 'Behind the Gesture', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.title-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a4a54, transparent);
}

/* Loading Bar Wrapper */
.loading-bar-wrapper {
    position: relative;
    width: 280px;
    padding: 8px 0;
}

/* Segmented Loading Bar */
.loading-bar {
    display: flex;
    gap: 3px;
    height: 3px;
    position: relative;
}

.bar-segment {
    flex: 1;
    height: 100%;
    background: #1a1a1e;
    position: relative;
    overflow: hidden;
}

/* Segment Fill Animation - Staggered */
.bar-segment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #606068, #909098, #c0c0c8, #909098, #606068);
    transform: translateX(-100%);
    animation: segmentFill 1.8s linear infinite;
}

.bar-segment:nth-child(1)::before { animation-delay: 0s; }
.bar-segment:nth-child(2)::before { animation-delay: 0.08s; }
.bar-segment:nth-child(3)::before { animation-delay: 0.16s; }
.bar-segment:nth-child(4)::before { animation-delay: 0.24s; }
.bar-segment:nth-child(5)::before { animation-delay: 0.32s; }
.bar-segment:nth-child(6)::before { animation-delay: 0.40s; }
.bar-segment:nth-child(7)::before { animation-delay: 0.48s; }
.bar-segment:nth-child(8)::before { animation-delay: 0.56s; }
.bar-segment:nth-child(9)::before { animation-delay: 0.64s; }
.bar-segment:nth-child(10)::before { animation-delay: 0.72s; }
.bar-segment:nth-child(11)::before { animation-delay: 0.80s; }
.bar-segment:nth-child(12)::before { animation-delay: 0.88s; }

@keyframes segmentFill {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Light Scanner */
.bar-scanner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 40px;
    height: 12px;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: scanMove 2s linear infinite;
    pointer-events: none;
}

@keyframes scanMove {
    0% {
        left: -40px;
    }
    100% {
        left: 100%;
    }
}

/* Status Text */
.loading-status {
    height: 14px;
    overflow: hidden;
}

.status-text {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #3a3a44;
    text-transform: uppercase;
    transition: opacity 0.15s linear;
}

/* ================================
   APP LAYOUT - COMMAND CENTER
   ================================ */

body.has-layout {
    overflow: hidden;
    background: #07070a;
}

.app-wrapper {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main";
    grid-template-columns: 200px 1fr;
    grid-template-rows: 48px 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ================================
   HEADER - COMMAND BAR
   ================================ */

.app-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    background: #0a0a0d;
    border-bottom: 2px solid #1a1a1f;
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.header-logo-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.header-logo-text {
    font-family: 'Behind the Gesture', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.02em;
    transform: skewX(-6deg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-label {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    color: #3a3a44;
    letter-spacing: 0.1em;
}

.header-divider {
    width: 1px;
    height: 20px;
    background: #1a1a1f;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.75rem;
}

.user-name {
    color: #ffffff;
    font-weight: 500;
}

.user-separator {
    color: #2a2a30;
}

.user-role {
    color: #4a4a54;
    font-weight: 400;
}

.header-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #4a4a54;
    transition: color 0.15s linear;
}

.header-logout svg {
    width: 18px;
    height: 18px;
}

.header-logout:hover {
    color: #ffffff;
}

/* ================================
   SIDEBAR - CONTROL PANEL
   ================================ */

.app-sidebar {
    grid-area: sidebar;
    background: linear-gradient(180deg, #0d0d10 0%, #0a0a0d 100%);
    border-right: 1px solid #1e1e24;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    flex: 1;
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Navigation Zone */
.nav-zone {
    display: flex;
    flex-direction: column;
}

.zone-label {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #4a4a54;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
}

.zone-label::before {
    content: '//';
    margin-right: 0.375rem;
    color: #2a2a30;
}

/* Navigation Item */
.nav-item {
    display: flex;
    align-items: center;
    margin: 0 0.625rem;
    padding: 0.75rem 1rem;
    color: #6a6a76;
    text-decoration: none;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: relative;
    background: transparent;
    border-left: 3px solid transparent;
    transition: all 0.1s linear;
}

.nav-indicator {
    display: none;
}

.nav-text {
    margin-left: 0;
}

.nav-item:hover {
    color: #b0b0b8;
    background: rgba(255, 255, 255, 0.03);
    border-left-color: #3a3a44;
}

.nav-item.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-left-color: #ffffff;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 6px 5px 0;
    border-color: transparent #0c0c0f transparent transparent;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #1a1a1f;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-status .status-indicator {
    width: 6px;
    height: 6px;
    background: #22c55e;
    animation: statusBlink 2s ease-in-out infinite;
}

.sidebar-status .status-text {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #4a4a54;
}

.sidebar-version {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.5625rem;
    font-weight: 500;
    color: #2a2a30;
    letter-spacing: 0.1em;
}

/* ================================
   MAIN CONTENT AREA
   ================================ */

.app-main {
    grid-area: main;
    background: #0e0e12;
    overflow-y: auto;
    position: relative;
}

.main-content {
    padding: 1.5rem 2rem;
    height: 100%;
}

/* ================================
   CALENDAR SECTION
   ================================ */

.calendar-section {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px - 3rem);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #252530;
}

.calendar-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.calendar-month {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    font-style: italic;
    transform: skewX(-4deg);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 0.625rem;
    background: #18181c;
    border: 1px solid #2a2a32;
    color: #8a8a96;
    cursor: pointer;
    transition: all 0.1s linear;
}

.nav-btn svg {
    width: 14px;
    height: 14px;
}

.nav-btn:hover {
    background: #222228;
    border-color: #3a3a44;
    color: #ffffff;
}

.nav-today {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0 1rem;
}

.calendar-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #18181c;
    border: 1px solid #2a2a32;
    color: #6a6a76;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s linear;
}

.view-btn:hover {
    background: #222228;
    color: #b0b0b8;
}

.view-btn.active {
    background: #2a2a32;
    border-color: #3a3a44;
    color: #ffffff;
}

.btn-new-post {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 36px;
    padding: 0 1.25rem;
    background: #ffffff;
    border: none;
    color: #0a0a0d;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.1s linear;
}

.btn-new-post svg {
    width: 14px;
    height: 14px;
}

.btn-new-post:hover {
    background: #e8e8e8;
}

/* Calendar Container - Floating Panel */
.calendar-container {
    flex: 1;
    background: #12121a;
    border: 1px solid #2a2a35;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* FullCalendar Theme Override - High Contrast */
.fc {
    --fc-border-color: #252530;
    --fc-button-bg-color: transparent;
    --fc-button-border-color: #252530;
    --fc-button-text-color: #6a6a76;
    --fc-button-hover-bg-color: #1a1a22;
    --fc-button-hover-border-color: #3a3a44;
    --fc-button-active-bg-color: #252530;
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: #16161e;
    --fc-today-bg-color: rgba(255, 255, 255, 0.04);
    --fc-event-bg-color: #3a3a44;
    --fc-event-border-color: #3a3a44;
    height: 100% !important;
}

.fc .fc-toolbar {
    display: none !important;
}

.fc .fc-scrollgrid {
    border: none !important;
}

.fc .fc-scrollgrid-section > * {
    border: none !important;
}

.fc th {
    background: #16161e;
    border-bottom: 1px solid #252530 !important;
}

.fc td {
    border-color: #1e1e28 !important;
}

.fc .fc-daygrid-day {
    background: transparent;
    transition: background 0.1s linear;
}

.fc .fc-daygrid-day:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Date Numbers - High Visibility */
.fc .fc-daygrid-day-number {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #8a8a96;
    padding: 0.625rem 0.75rem;
}

/* Weekend Dates */
.fc .fc-day-sat .fc-daygrid-day-number,
.fc .fc-day-sun .fc-daygrid-day-number {
    color: #6a6a76;
}

/* Today - Strong Highlight */
.fc .fc-daygrid-day.fc-day-today {
    background: rgba(255, 255, 255, 0.03);
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: #ffffff;
    font-weight: 700;
    background: #3a3a44;
    padding: 0.375rem 0.625rem;
    margin: 0.25rem;
}

/* Column Headers - Day Names */
.fc .fc-col-header-cell-cushion {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6a6a76;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.875rem 0;
}

/* Events */
.fc .fc-event {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3125rem 0.5rem;
    margin: 2px 4px;
    border: none !important;
    cursor: pointer;
    transition: transform 0.1s linear, opacity 0.1s linear;
}

.fc .fc-event:hover {
    transform: translateX(2px);
    opacity: 0.9;
}

.fc .fc-daygrid-event-dot {
    display: none;
}

.fc .fc-timegrid-slot-label {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #4a4a54;
}

.fc .fc-daygrid-more-link {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #8a8a96;
    padding: 0.25rem 0.375rem;
}

.fc .fc-daygrid-more-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Scrollbar */
.fc-scroller::-webkit-scrollbar {
    width: 6px;
}

.fc-scroller::-webkit-scrollbar-track {
    background: #12121a;
}

.fc-scroller::-webkit-scrollbar-thumb {
    background: #2a2a35;
}

.fc-scroller::-webkit-scrollbar-thumb:hover {
    background: #3a3a44;
}

/* ================================
   MODAL
   ================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--color-bg);
    border: var(--border-sharp);
    z-index: 1;
}

.modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-glow), var(--color-metal), transparent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: var(--border-sharp);
}

.modal-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-metal-dark);
    color: var(--color-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-surface);
    border-color: var(--color-metal);
    color: var(--color-text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: var(--border-sharp);
}

.modal-footer .btn {
    width: auto;
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
}

.btn-secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-metal-dark);
    color: var(--color-text-muted);
}

.btn-secondary:hover {
    background: var(--color-surface-light);
    border-color: var(--color-metal);
    color: var(--color-silver);
}

.btn-danger {
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.btn-danger:hover {
    background: rgba(255, 45, 85, 0.2);
}

/* Post Detail */
.post-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-label {
    width: 80px;
    flex-shrink: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 0.125rem;
}

.detail-value {
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-text);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-draft {
    background: var(--color-surface);
    color: var(--color-text-muted);
}

.status-scheduled {
    background: var(--color-glow-dim);
    color: var(--color-glow);
}

.status-published {
    background: rgba(48, 209, 88, 0.15);
    color: var(--color-success);
}

.status-failed {
    background: rgba(255, 45, 85, 0.15);
    color: var(--color-error);
}

/* ================================
   PLATFORMS PAGE - CONTROL CENTER
   ================================ */

.platforms-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: calc(100vh - 48px - 3rem);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1e1e24;
}

.section-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.section-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    font-style: italic;
    transform: skewX(-4deg);
}

.section-desc {
    font-size: 0.8125rem;
    color: #6a6a76;
}

.btn-add-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, #2a2a32 0%, #1a1a1f 100%);
    border: 1px solid #3a3a44;
    color: #ffffff;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s linear;
}

.btn-add-platform svg {
    width: 14px;
    height: 14px;
}

.btn-add-platform:hover {
    background: linear-gradient(135deg, #3a3a44 0%, #2a2a32 100%);
    border-color: #4a4a54;
}

/* Platform Stats */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #12121a;
    border: 1px solid #1e1e24;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #1a1a22;
    border: 1px solid #2a2a32;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon-wp {
    color: #21759b;
}

.stat-icon-active {
    color: #22c55e;
}

.stat-icon-posts {
    color: #6a6a76;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6a6a76;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Platform List */
.platform-list-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0c0c10;
    border: 1px solid #1e1e24;
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #101014;
    border-bottom: 1px solid #1e1e24;
}

.list-title {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6a6a76;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.list-title::before {
    content: '//';
    margin-right: 0.5rem;
    color: #3a3a44;
}

.list-count {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a4a54;
}

.platform-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-content: start;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    margin-bottom: 1.5rem;
}

.empty-icon svg {
    width: 64px;
    height: 64px;
    color: #2a2a32;
}

.empty-text {
    font-size: 1rem;
    color: #6a6a76;
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.8125rem;
    color: #4a4a54;
    line-height: 1.6;
}

/* Platform Card */
.platform-card {
    background: #16161e;
    border: 1px solid #252530;
    display: flex;
    flex-direction: column;
    transition: all 0.15s linear;
}

.platform-card:hover {
    border-color: #3a3a44;
    background: #1a1a22;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #252530;
}

.card-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-type svg {
    width: 18px;
    height: 18px;
    color: #21759b;
}

.type-name {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6a6a76;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.card-status .status-dot {
    width: 6px;
    height: 6px;
}

.card-status .status-text {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-status.status-active .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    animation: statusBlink 2s ease-in-out infinite;
}

.card-status.status-active .status-text {
    color: #22c55e;
}

.card-status.status-inactive .status-dot {
    background: #4a4a54;
}

.card-status.status-inactive .status-text {
    color: #4a4a54;
}

.card-body {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.card-title {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.card-url {
    font-size: 0.75rem;
    color: #6a6a76;
    word-break: break-all;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #4a4a54;
}

.meta-item svg {
    width: 14px;
    height: 14px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: #121218;
    border-top: 1px solid #252530;
}

.card-date {
    font-size: 0.6875rem;
    color: #4a4a54;
}

.card-actions {
    display: flex;
    gap: 0.375rem;
}

.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    background: transparent;
    border: 1px solid #2a2a32;
    color: #6a6a76;
    cursor: pointer;
    transition: all 0.1s linear;
}

.btn-card-action svg {
    width: 14px;
    height: 14px;
}

.btn-card-action:hover {
    background: #2a2a32;
    border-color: #3a3a44;
    color: #ffffff;
}

.btn-card-action.btn-delete:hover {
    background: rgba(255, 45, 85, 0.15);
    border-color: var(--color-error);
    color: var(--color-error);
}

.btn-card-action.btn-toggle.is-active {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

/* Platform Modal */
.modal-platform {
    max-width: 560px;
}

.modal-platform .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-alert {
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    border-left: 2px solid;
    font-size: 0.8125rem;
}

.modal-alert.alert-error {
    background: rgba(255, 45, 85, 0.08);
    border-color: var(--color-error);
    color: var(--color-error);
}

.modal-alert.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: var(--color-success);
    color: var(--color-success);
}

.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1e1e24;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section > .form-label {
    display: block;
    margin-bottom: 1rem;
}

/* Platform Type Selector */
.platform-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.type-option {
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-option .type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #12121a;
    border: 1px solid #252530;
    transition: all 0.1s linear;
}

.type-option .type-card svg {
    width: 24px;
    height: 24px;
    color: #6a6a76;
}

.type-option .type-card span {
    font-size: 0.75rem;
    color: #6a6a76;
}

.type-option .type-card .coming-soon {
    font-size: 0.625rem;
    color: #4a4a54;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-option:hover:not(.disabled) .type-card {
    border-color: #3a3a44;
    background: #1a1a22;
}

.type-option.active .type-card {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.type-option.active .type-card svg {
    color: #00d4ff;
}

.type-option.active .type-card span:not(.coming-soon) {
    color: #ffffff;
}

.type-option.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Form Elements for Platform */
.input-label {
    display: block;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6a6a76;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.input-hint {
    font-size: 0.6875rem;
    color: #4a4a54;
    margin-top: 0.375rem;
}

/* Password Toggle */
.btn-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #4a4a54;
    cursor: pointer;
    transition: color 0.1s linear;
    z-index: 2;
}

.btn-toggle-password:hover {
    color: #8a8a96;
}

.btn-toggle-password svg {
    width: 16px;
    height: 16px;
}

.btn-toggle-password + .input-indicator {
    right: 3rem;
}

/* Connection Test */
.btn-test-connection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: transparent;
    border: 1px dashed #2a2a32;
    color: #6a6a76;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s linear;
}

.btn-test-connection svg {
    width: 16px;
    height: 16px;
}

.btn-test-connection:hover {
    border-color: #3a3a44;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.btn-test-connection.loading {
    pointer-events: none;
    opacity: 0.6;
}

.btn-test-connection.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid #4a4a54;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

.connection-result {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.875rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
}

.connection-result.success {
    background: rgba(34, 197, 94, 0.08);
    border-left: 2px solid var(--color-success);
    color: var(--color-success);
}

.connection-result.error {
    background: rgba(255, 45, 85, 0.08);
    border-left: 2px solid var(--color-error);
    color: var(--color-error);
}

.connection-result .result-icon::before {
    display: inline-block;
    width: 16px;
    text-align: center;
}

.connection-result.success .result-icon::before {
    content: '✓';
}

.connection-result.error .result-icon::before {
    content: '✕';
}

/* Delete Modal */
.modal-delete {
    max-width: 420px;
}

.delete-warning {
    text-align: center;
    padding: 1rem 0;
}

.delete-warning svg {
    width: 48px;
    height: 48px;
    color: var(--color-error);
    margin-bottom: 1rem;
}

.delete-warning p {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.delete-platform-name {
    font-weight: 600;
    color: var(--color-error) !important;
}

.delete-hint {
    font-size: 0.75rem;
    color: #6a6a76 !important;
    margin-top: 1rem !important;
}

/* Scrollbar for Platform List */
.platform-list::-webkit-scrollbar {
    width: 6px;
}

.platform-list::-webkit-scrollbar-track {
    background: #0c0c10;
}

.platform-list::-webkit-scrollbar-thumb {
    background: #2a2a32;
}

.platform-list::-webkit-scrollbar-thumb:hover {
    background: #3a3a44;
}

/* ================================
   NEW POST MODAL
   ================================ */

.modal-new-post {
    max-width: 560px;
}

.modal-new-post .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Platform Selector in Modal */
.platform-selector {
    margin-top: 0.5rem;
}

.platform-selector-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 2rem;
    background: #0c0c10;
    border: 1px dashed #2a2a32;
    text-align: center;
}

.platform-selector-empty span {
    font-size: 0.8125rem;
    color: #6a6a76;
}

.link-add-platform {
    font-size: 0.75rem;
    color: #00d4ff;
    text-decoration: none;
}

.link-add-platform:hover {
    text-decoration: underline;
}

.platform-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-option {
    cursor: pointer;
}

.platform-option input {
    display: none;
}

.platform-card-mini {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: #12121a;
    border: 1px solid #1e1e24;
    transition: all 0.1s linear;
}

.platform-option:hover .platform-card-mini {
    border-color: #2a2a32;
    background: #16161e;
}

.platform-option.selected .platform-card-mini {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1a1a22;
    border: 1px solid #2a2a32;
}

.platform-icon svg {
    width: 18px;
    height: 18px;
    color: #21759b;
}

.platform-option.selected .platform-icon {
    border-color: rgba(0, 212, 255, 0.3);
}

.platform-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.platform-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
}

.platform-url {
    font-size: 0.6875rem;
    color: #4a4a54;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 0.1s linear;
}

.platform-check svg {
    width: 16px;
    height: 16px;
    color: #00d4ff;
}

.platform-option.selected .platform-check {
    opacity: 1;
}

/* DateTime Inputs */
.datetime-inputs {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0.75rem;
}

.form-input-date,
.form-input-time {
    padding: 0.875rem 1rem;
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-bg-deep);
    border: 1px solid var(--color-metal-dark);
    color: var(--color-text);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-metal);
    background: var(--color-surface);
}

.form-textarea::placeholder {
    color: var(--color-text-dim);
}

/* Optional label */
.optional {
    font-weight: 400;
    color: #3a3a44;
    font-size: 0.65rem;
}

/* Status Selector */
.status-selector {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.status-option {
    cursor: pointer;
}

.status-option input {
    display: none;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.1s linear;
}

.status-chip.status-draft {
    background: transparent;
    border-color: #3a3a44;
    color: #6a6a76;
}

.status-option:hover .status-chip.status-draft {
    border-color: #4a4a54;
    color: #8a8a96;
}

.status-option input:checked + .status-chip.status-draft {
    background: #3a3a44;
    border-color: #4a4a54;
    color: #ffffff;
}

.status-chip.status-scheduled {
    background: transparent;
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.status-option:hover .status-chip.status-scheduled {
    background: rgba(0, 212, 255, 0.05);
}

.status-option input:checked + .status-chip.status-scheduled {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #00d4ff;
}

/* Form group spacing in modal */
.modal-new-post .form-group {
    margin-bottom: 1.25rem;
}

.modal-new-post .form-group:last-child {
    margin-bottom: 0;
}

/* Alert in modal */
.modal-new-post .modal-alert {
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    border-left: 2px solid;
    font-size: 0.8125rem;
}

.modal-new-post .modal-alert.alert-error {
    background: rgba(255, 45, 85, 0.08);
    border-color: var(--color-error);
    color: var(--color-error);
}
